﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QuanLyNhaSach
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            //DevExpress.XtraNavBar.NavBarItem item = navBarControl1.Items.Add();
            //item.LargeImageIndex = item.SmallImageIndex = imageComboBoxEdit1.SelectedIndex;
            //item.Caption = "Item " + (i++).ToString();
            //navBarControl1.ActiveGroup.ItemLinks.Add(item);
            //ExistSelectedItemLink();
            for (int i = 0; i < 2; i++)
            {
                DevExpress.XtraNavBar.NavBarGroup group = nbmenu.Groups.Add();
                group.Caption = "Nhap lieu"+i.ToString();
                for (int j = 0; j < 2; j++)
                {
                    DevExpress.XtraNavBar.NavBarItem item = nbmenu.Items.Add();
                    item.Caption = "item" + j.ToString();
                    nbmenu.Groups[i].ItemLinks.Add(item);

                }
            }

            
        }

      
      
    }
}
